package com.augurit.common.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name = "SYS_CAL_EVENT_TYPE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SysCalEventType implements java.io.Serializable {
	
	// 属性
	
	private Long typeId;
	
	private String typeName;
	
	private Long color;

	// 属性
	@Id
    @Column(name = "TYPE_ID")
    @SequenceGenerator(name="SEQ_SYS_CAL_EVENT_TYPE", sequenceName="SEQ_SYS_CAL_EVENT_TYPE", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_SYS_CAL_EVENT_TYPE")
	public Long getTypeId() {
		return this.typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}
	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public Long getColor() {
		return this.color;
	}

	public void setColor(Long color) {
		this.color = color;
	}
}